import Vue from 'vue'
import Router from 'vue-router'
import Layout from '../page/layout/Layout.vue'
import Home from '../components/Home.vue'
import Project_maintenance from '../page/Manufacturing_execution_mes/Project_maintenance.vue'
import Energy_efficiency_early_warning from '../page/Smart_made_double_carbon/Energy_efficiency_early_warning.vue'
import Factory_modeling from '../page/manufacturing_execution_mes/Factory_modeling.vue'
import Process_modeling from '../page/Manufacturing_execution_mes/Process_modeling.vue'
import mes_equipment from '../page/manufacturing_execution_mes/mes_equipment.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      component: Layout,
      redirect: "/home",
      children: [
        {
          path: 'home',
          component: Home
        },
        // {
        //   path: '/fixed_carbon_emission',
        //   component: Fixed_carbon_emission
        // },
        // {
        //   path: '/energy_consumption_data',
        //   component: Energy_consumption_data
        // },
        {
          path: '/energy_efficiency_early_warning',
          component: Energy_efficiency_early_warning
        },
        {
          path: '/project_maintenance',
          component: Project_maintenance
        },
        {
          path: '/factory_modeling',
          component: Factory_modeling
        },
        {
          path: '/process_modeling',
          component: Process_modeling
        },
        {
          path: '/mes_equipment',
          component: mes_equipment
        }
      ]
    },

  ]
})
